<table class="xsui-table xsui-table-striped xsui-table-hover xsui-table-bordered">
    <thead>
        <tr>
    <foreach name="afields" item="vo">
        <if condition="$vo">
            <th>{$vo}</th>
        </if>
    </foreach>
    <th>操作</th>
</tr>
</thead>
<tbody>
<foreach name="list" item="vo">
    <tr data-key="{$vo.id}">
    <foreach name="afields" item="title" key="field">
        <if condition="($title) and ($field eq 'telphone')">
            <td><a class="lnk-dialout" href="{$vo.telphone}" data-value="{$vo.telphone}" title="拨打此电话"><i class="fa fa-phone-square fa-fw" style="color:#376EA7"></i>{$vo.telphone}</a></td>
            <elseif condition="$field eq 'review_time'" />
            <td title="{$vo.review_time}">{$vo.review_time|sofn_tran_time=###}</td>
            <elseif condition="$title" />
            <td>{$vo[$field]}</td>
        </if>
    </foreach>
    <td>
        <ul class="xsui-operate-group">
            <li><a href="#" class="xsui-btn ui-state-default xsui-icon-right">操作<i class="fa fa-caret-square-o-down"></i></a>
                <ul>
                    <if condition="'SEAT' eq $login_data['type_name']">
                    <li><a href="{:U('CustomerDispatch/dispatch_simple','customer_id='.$vo['id'])}" class="xsui-lnk-edit-dialog" data-id="{$vo.id}" title="领取 {$vo.name}"><i class="fa fa-shopping-basket fa-fw"></i>领取</a></li>
                        <else/>
                    <li><a href="{:U('CustomerDispatch/dispatch_edit','customer_id='.$vo['id'])}" class="xsui-lnk-edit-dialog" data-id="{$vo.id}" title="分配 {$vo.name}"><i class="fa fa-edit fa-fw"></i>分配</a></li>
                        <li><a href="{:U('Customer/customer_delete','id='.$vo['id'])}" class="xsui-lnk-remove" data-id="{$vo.id}" title="删除 {$vo.name}" data-xsui-options="confirm_message:'您确定要删除该客户吗?\n删除后不可恢复!'"><i class="fa fa-remove fa-fw"></i>删除</a></li>
                    </if>
                </ul>
            </li>
        </ul>
    </td>
    </tr>
</foreach>
</tbody>
</table>
<div class="xsui-pagination">{$page}</div>